﻿// -----------------------------------------------------------------------
// <copyright file="Program.cs">
// Created by Robert (Bob) Williams, 2012
// </copyright>

// This file is part of DeployFileDemo.
// DeployFileDemo is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// DeployFileDemo is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with DeployFileDemo.  If not, see <http://www.gnu.org/licenses/>.
// -----------------------------------------------------------------------


using System;
using Demo.DeployFile;

namespace DeployFileTest
{
    static class Program
    {
        private static readonly String installerDir = @"C:\temp\DeployDemo";
        private static readonly String productName = "Deploy File Demo";
        private static readonly String stagePath = String.Format(@"{0}\{1}_Installer", installerDir, productName.Replace(" ", "_"));

        private static FileInstaller installerLib = new FileInstaller();
        [STAThread]
        static void Main(string[] args)
        {
            installerLib.DeployResources(stagePath, "DeployFileDemo.DeployFileGenerator.DeployFile.resources");
            Environment.Exit(0);
        }
    }
}
